import Vue from 'vue'
import Router from 'vue-router'
import point from '@/components/test_point'
import standard from '@/components/standard'
import DTTunnel from '@/components/DTTunnel'
import login from '@/logins/Login'
import inputmodel from '@/components/inputmodel'
import adilis from '@/components/adilis'
import d0 from '@/components/D0'
import d1 from '@/components/D1'
import d2 from '@/components/D2'
import d3 from '@/components/D3'
import html404 from '@/components/404'
import MainFrame from '@/components/MainFrame'
import Model from '@/components/sub_modelview'
import standardList from '@/components/standardList'
import temp from '@/components/temp'
import shape from '@/components/shape'
import geo from '@/components/func/func_geo'
import geojson2gml from '@/components/geojson2gml'


Vue.use(Router)

export const constantRoutes = [
  {
    path: '/geojson2gml',
    name: 'geojson2gml',
    component: geojson2gml,
  },
  {
    path: '/point',
    name: 'point',
    component: point,
  },
  {
    path: '/geo',
    name: 'geo',
    component: geo,
  },
  {
    path: '/shape',
    name: 'shape',
    component: shape,
  },
  {
        path: '/main',
        name: 'standard',
        component: standard
    },
    {
        path: '/Model',
        name: 'Model',
        component: Model
    },    {
        path: '/MainFrame',
        name: 'MainFrame',
        component: MainFrame
    },
  {
    path: '/temp',
    name: 'temp',
    component: temp
  },
    {
        path: '/',
        name: 'standardList',
        component: standardList
    },
  {
    path: '/standardList',
    name: 'standardList',
    component: standardList
  },
    {
        path: '/tunnel1',
        name: 'DTTunnel',
        component: DTTunnel
    },
    {
        path: '/tunnel2',
        name: 'inputmodel',
        component: inputmodel
    },
    {
        path: '/tunnel3',
        name: 'adilis',
        component: adilis
    },
    {
        path: '/d0',
        name: 'd0',
        component: d0
    },
    {
        path: '/d1',
        name: 'd1',
        component: d1
    },
    {
        path: '/d2',
        name: 'd2',
        component: d2
    },
    {
        path: '/d3',
        name: 'd3',
        component: d3
    },
    {
        path: '/404',
        name: 'html404',
        component: html404,
        hidden: true
    },
    {
        path: '*',
        redirect: '/404',
        name: 'html404',
        component: html404,
    }
]

const routes = [...constantRoutes, ]

export default new Router({
    // mode: 'history',
    routes
})
